package com.r2coding.server.modules.file.context;

import com.r2coding.server.modules.file.entity.File;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.springframework.web.multipart.MultipartFile;

import java.io.Serializable;

/**
 * @author 98k灬
 * @version v1.0.0
 * @Description : 保存单文件的上下文实体
 * @Create on : 2023/10/13 13:24
 **/
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@Accessors(chain = true)
public class FileSaveContext implements Serializable {

    private static final long serialVersionUID = 7478979526446472900L;

    private String filename;

    private String identifier;

    private Long totalSize;

    private MultipartFile file;

    private Long userId;

    private File record;

    private String realPath;
}
